import request from '@/utils/request'


/**
 * 订单列表列表
 * @param {*} data
 */
export function orderList(data) {
  return request({
    url: 'procurementOrder/list',
    method: 'post',
    data: data
  })
}
/**
 * 根据id查询
 * @param {*} data
 */
export function getorderInfo(data) {
  return request({
    url: 'procurementOrder/getInfo',
    method: 'post',
    data: data
  })
}


/**
 * 新增采购订单
 * @param {*} data
 */
export function addorder(data) {
  return request({
    url: 'procurementOrder/add',
    method: 'post',
    data: data
  })
}

/**
 * 修改采购订单信息
 * @param data
 */
export function editorder(data) {
  return request({
    url: 'procurementOrder/edit',
    method: 'post',
    data: data
  })
}

/**
 * 删除采购订单
 * @param data
 */
export function removeorder(data) {
  return request({
    url: 'procurementOrder/remove',
    method: 'post',
    data: data
  })
}

/**
 * 订单请求列表
 * @param data
 */
export function ProcurementOrderDetailsList(data) {
  return request({
    url: 'ProcurementOrderDetails/list',
    method: 'post',
    data: data
  })
}
